package cn.edu.sdjzu.xg21.dao;

import cn.edu.sdjzu.xg21.domain.Teacher;
import cn.edu.sdjzu.xg21.exception.BysjException;
import cn.edu.sdjzu.xg21.util.Condition;
import cn.edu.sdjzu.xg21.util.Pagination;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.Collection;
import java.util.List;

public interface TeacherDaoInterface {
    public Teacher find(int id) throws SQLException, BysjException;
    public Collection<Teacher> findAll(Connection connection, List<Condition> conditionList) throws SQLException,BysjException;
    public Collection<Teacher> findAll(Connection connection, List<Condition> conditionList, Pagination pagination) throws SQLException, BysjException;
//    public int add(Teacher teacher, Connection connection) throws SQLException, BysjException;
    public boolean delete(int id, Connection connection) throws SQLException, BysjException;
//    public boolean update(Teacher teacher,Connection connection) throws SQLException, BysjException;
}
